[Clang] Fix build with GCC 14 on ARM
authorEmanuele Rocca <emanuele.rocca@arm.com>
Tue, 17 Dec 2024 10:19:10 +0000 (11:19 +0100)
committerMatthias Klose <doko@debian.org>
Tue, 17 Dec 2024 10:19:10 +0000 (11:19 +0100)
commita1192225a616b30ce700144c0650dd39d32834e3
treeef80ed01ca9fbd2841d51d2e47b73aca75a5e6a4
parente865ad55cc719807a99cfb3e289da35d04ee749c
[Clang] Fix build with GCC 14 on ARM

Origin: backport, https://github.com/llvm/llvm-project/pull/78704/commits/078c18de832328f743fb6e
Bug-Debian: https://bugs.debian.org/1077068
Forwarded: not-needed
Last-Update: 2024-08-29

Backport to LLVM 17 of a patch by Nikita Popov <npopov@redhat.com> merged in
the upstream main branch. The patch fixes a build issue on arm64 with GCC 14.
The additional changes to the for loop in ClangAttrEmitter.cpp have been taken
from the main branch and are needed for the HasArgs boolean.

Gbp-Pq: Name arm64-clang-gcc-14.patch
clang/include/clang/Basic/TokenKinds.def
clang/include/clang/Basic/TokenKinds.h
clang/utils/TableGen/ClangAttrEmitter.cpp